//面包屑
const path = ['门店管理', '盘点管理', '商品盘点'];
//搜索条件
const filterOption = {
	items: [
	{
		label: "盘点地点",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "factory"
	},
	{
		label: "盘点库位",
		type: "dropdown",
		data: [],
		placeholder: "请选择",
		value: undefined,
		key: "inventoryLocation"
	},
	{
		label: "盘点状态",
		type: "dropdown",
		data: [
			{
				label: "未开始",
				value: "1"
			},
			{
				label: "盘点中",
				value: "2"
			},
			{
				label: "待提交报告",
				value: "3"
			},
			{
				label: "已完结",
				value: "4"
			},
			{
				label: "已过账",
				value: "5"
			}
		],
		placeholder: "请选择",
		value: undefined,
		key: "inventoryStatus"
	},
	{
		label: "创建人",
		type: "dropdown",
		data: [
			{
				label: "张三",
				value: "4156465456"
			}
		],
		placeholder: "请选择",
		value: undefined,
		key: "createBy"
	},
	/*{
		label: "提交人",
		type: "dropdown",
		data: [
			{
				label: "李四",
				value: "45245454"
			}
		],
		placeholder: "请选择",
		value: undefined,
		key: "submitter"
	},*/
	{
		label: "开始盘点时间",
		type: "datetimerange",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "inventoryStart"
	},
	{
		label: "结束盘点时间",
		type: "datetimerange",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "inventoryEnd"
	},
	{
		label: "创建盘点时间",
		type: "datetimerange",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "create"
	},
	{
		label: "提交盘点时间",
		type: "datetimerange",
		data: undefined,
		placeholder: "请选择",
		value: undefined,
		key: "submitInventory"
	}],
	btnGroup: [{
			label: "查询",
			type: "search"
		},
		{
			label: "清除",
			type: "clear"
		}
	],
	close: true
};
//状态类型
const configArr = [
	{
        color: "brown",
        label: "全部盘点任务",
        value: "type1",
        count: 300
    },
    {
        color: "green",
        label: "未开始",
        value: "type2",
        count: 300
    },
	{
	    color: "green",
	    label: "盘点中",
	    value: "type2",
	    count: 300
	},
]
//盘点列表
const tableHeaderData = [
	{
		prop:'factory',
		label:'盘点地点',
		width:''
	},
	{
		prop:'inventoryLocation',
		label:'盘点库位',
		width:''
	},
	{
		prop:'createBy',
		label:'创建人',
		width:''
	},
	{
		prop:'numberOfDiscs',
		label:'应盘数量',
		width:''
	},
	{
		prop:'numberOfSolidOrders',
		label:'实盘数量',
		width:''
	},
	{
		prop:'createTime',
		label:'创建盘点时间',
		width:'200'
	},
	{
		prop:'inventoryStartTime',
		label:'盘点开始时间',
		width:'200'
	},
	{
		prop:'inventoryEndTime',
		label:'盘点结束时间',
		width:'200'
	},
	{
		prop:'inventoryStatusName',
		label:'盘点状态',
		width:''
	},
	{
		prop:'submitter',
		label:'提交人',
		width:''
	},
	{
		prop:'submitInventoryTime',
		label:'提交报告时间',
		width:'200'
	},
]
//表格数据
const tableData = [];
//分页数据
const paginationObject = {
	currentPage: 1,
	pageSize: 1,
	pageTotal: 1,
	total:1,
	num1:1,
	num2:1
}
let Model = {
	data() {
		return {
			Model: {
				path: path,
				paginationObject,
				configArr,
				filterOption: filterOption,
				tableHeaderData,							//售后出库单列表（表头）
				Addnewtask:false,							//新建盘点弹窗
				filterOptionData:undefined,
				Inventorylocation:undefined,//默认的盘点库位
				defaultInfo:undefined,//默认的供应商
				defaultOt:undefined,//默认的库存标识
			}
		}
	}
}
export default Model;
